﻿<%@ Page Language="C#" MasterPageFile="~/System/MasterPage.master" AutoEventWireup="true" CodeFile="Product_Yaoli.aspx.cs" Inherits="Agency_Product_Yaoli" Title="无标题页" %>
<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMaster" Runat="Server">
<script language="vbscript" src="../Common/yz.vbs"></script>
    <script language="javascript" type="text/javascript">
    
        function Openurl()
        {
         window.open('ProductcodeUpdate.aspx');
        }            
        
    </script>

    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 4px; height: 34px;">
                <img src="../images/intro_left.gif" width="4" height="34"></td>
            <td class="intro_wordbg" style="height: 34px">
                目录信息</td>
            <td background="../images/intro_bg.gif" style="height: 34px">
                <img src="../images/intro_right.jpg" width="118" height="34"></td>
        </tr>
    </table>
    <table id="tabData" width="98%" border="1" align="center" cellpadding="2" cellspacing="1">
      
        <tr>
            <td align="right" style="width: 142px">
                流水号：</td>
            <td style="width: 233px">
                <asp:TextBox ID="txtLSH" runat="server" InvertedComma="流水号" Width="233px"></asp:TextBox></td>
            <td align="right" style="width: 92px">
                品目号：</td>
            <td>
                <asp:TextBox ID="txtProductCode" runat="server" InvertedComma="流水号" Width="233px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 142px">
                通用名：</td>
            <td style="width: 233px">
                <asp:TextBox ID="txtname" runat="server" InvertedComma="通用名" Width="233px"></asp:TextBox></td>
            <td align="right" style="width: 92px">
                剂 型：</td>
            <td>
                <asp:TextBox ID="txtmedicinemodel" runat="server" InvertedComma="剂 型" Width="233px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 142px">
                规 格：</td>
            <td style="width: 233px">
                <asp:TextBox ID="txtoutlook" runat="server" InvertedComma="规 格" Width="233px"></asp:TextBox>&nbsp;
            </td>
            <td align="right" style="width: 92px">
                转换系数：</td>
            <td>
                <asp:TextBox ID="txtZhuanhuan" runat="server" Width="233px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 142px">
                药理分类：</td>
            <td style="width: 233px">
                <asp:DropDownList ID="lstYaoLi" runat="server" Width="233px">
                </asp:DropDownList></td>
            <td align="right" style="width: 92px">
                修改人:</td>
            <td>
               <asp:DropDownList ID="lstSHR" runat="server" Width="233px">
                </asp:DropDownList></td>
        </tr>      
        <tr>
        <td align="right" style="width: 142px">
                单位：</td>
            <td style="width: 233px">
                <asp:TextBox ID="TextUnit" runat="server" Width="141px"></asp:TextBox><br />
                <asp:CheckBox ID="chkFilter" runat="server" Text="过滤无商品的目录" />
            </td>
            
         
            <td style="height: 47px">
               <asp:Button ID="Button5" runat="server" CssClass="button_Query" 
                 OnClientClick="javascript:return CheckForm();" Text="" />
          </td>
            <td style="height: 47px">
                &nbsp;<asp:Button ID="ToEcxul" runat="server" CssClass="button_bg4" OnClick="ToEcxul_Click"
                    Text="导出目录" Width="70px" />&nbsp;<asp:Button ID="Button1" runat="server" CssClass="button_bg4" OnClick="ToEcxul2_Click"
                    Text="导出商品库" Width="70px" />&nbsp;<input id="Button2" type="button" value="导入品目数据" class="button_bg6" onclick='Openurl()'
                    style="width: 90px" /></td>
        </tr>
    </table>
   <asp:Label ID="hidProcode"  runat="server"></asp:Label>
    <asp:GridView ID="GridView1" runat="server" Width="98%" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
        CellPadding="4" CssClass='table_table' HeaderStyle-CssClass='table_title' OnRowEditing="GridView1_RowEditing"
                        OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" >
        <Columns>
            <asp:BoundField DataField="productid" HeaderText="流水号" ReadOnly="True" />
            <asp:TemplateField HeaderText="品目号">
              <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("productCode") %>'></asp:TextBox>
              </EditItemTemplate>
              <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Bind("productCode") %>'></asp:Label>
              </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="productname" HeaderText="通用名" ReadOnly="True"  />
            <asp:BoundField DataField="medicinemodel" HeaderText="剂 型" ReadOnly="True" />
            <asp:BoundField DataField="outlookc" HeaderText="规 格" ReadOnly="True"  />
            <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="True" />
            <asp:BoundField DataField="xishu" HeaderText="转换系数" ReadOnly="True" />
            <asp:BoundField DataField="name" HeaderText="药理名称" ReadOnly="True"  />
             <asp:BoundField DataField="remark" HeaderText="修改记录" ReadOnly="True"  />
             <asp:TemplateField HeaderText="修改" >
                <ItemTemplate>
                    <a href='Product_yaoli_Edit.aspx?productid=<%#MsgBox.JiaMiobj_Encrypt(DataBinder.Eval(Container.DataItem, "productid"))%>&Productcode=<%#MsgBox.JiaMiobj_Encrypt(DataBinder.Eval(Container.DataItem, "productcode"))%>' target="_blank"  visible="true">修改</a>
                </ItemTemplate>
               
            </asp:TemplateField>
           <asp:CommandField HeaderText="编辑" ShowEditButton="True" Visible="false"  />             
          
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" CssClass="table_title" />
    </asp:GridView>
    <asp:GridView  ID="GridView2" runat="server"></asp:GridView>
    <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
</asp:Content>

